<?php
/**
 * ExtTriggerField class file
 *
 * @author TrueSoftware B.V. (The Netherlands)
 * @link http://www.ext4yii.com
 * @copyright Copyright 2007-2010 TrueSoftware B.V. all rights reserved.
 * @license http://www.ext4yii.com/license/
 *          EVALUATION VERSION - NOT FOR COMMERCIAL USE OR DISTRIBUTION.
 * @version 0.7.2
 */

class ExtTriggerField extends ExtTriggerFieldBase
{
    /**
     * Gets the value of ExtJS editable property
     * @return Boolean 
     */
    public function getEditable()
    {
    	return $this->getConfig("editable");
    }

    /**
     * Sets the value of ExtJS editable property
     * @param Boolean $value 
     */
    public function setEditable($value)
    {
    	$this->setConfig("editable",$value);
    }

    /**
     * Gets the value of ExtJS hideTrigger property
     * @return Boolean 
     */
    public function getHideTrigger()
    {
    	return $this->getConfig("hidetrigger");
    }

    /**
     * Sets the value of ExtJS hideTrigger property
     * @param Boolean $value 
     */
    public function setHideTrigger($value)
    {
    	$this->setConfig("hidetrigger",$value);
    }

    /**
     * Gets the value of ExtJS readOnly property
     * @return Boolean 
     */
    public function getReadOnly()
    {
    	return $this->getConfig("readonly");
    }

    /**
     * Sets the value of ExtJS readOnly property
     * @param Boolean $value 
     */
    public function setReadOnly($value)
    {
    	$this->setConfig("readonly",$value);
    }

    /**
     * Gets the value of ExtJS triggerClass property
     * @return String 
     */
    public function getTriggerClass()
    {
    	return $this->getConfig("triggerclass");
    }

    /**
     * Sets the value of ExtJS triggerClass property
     * @param String $value 
     */
    public function setTriggerClass($value)
    {
    	$this->setConfig("triggerclass",$value);
    }

    
    public function __construct()
    {
        parent::__construct();
        $this->configmap = array_merge($this->configmap,array(
            'hidetrigger' => 'hideTrigger',
            'readonly' => 'readOnly',
            'triggerclass' => 'triggerClass'
        ));



        $this->proptags = array_merge($this->proptags,array(
            'menu' => true
        ));
        $this->setXType('trigger');
        $this->setXClass('Ext.form.TriggerField');
    }    
}
?>